package com.qijian.maindata.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.qijian.maindata.domain.ProductAttributeItem;
import org.apache.ibatis.annotations.Select;

/**
 * 辅助属性值Mapper接口
 *
 * @author qijian
 * @date 2022-01-13
 */
public interface ProductAttributeItemMapper extends BaseMapper<ProductAttributeItem> {

    @Select("select count(0)+IF(#{isAddOne},1,0) from bi_product_attribute_item WHERE create_time >= CURRENT_DATE ")
    int countCurrentDateWithDel(boolean isAddOne);
}
